﻿using OnHook.Domain.Enums;
using SqlSugar;

namespace OnHook.Domain.Entities
{
    /// <summary>
    /// 游戏表
    /// </summary>
    [SugarTable("t_game_info", TableDescription = "游戏表")]
    public class GameInfo : AllBaseEntity
    {
        ///<summary>
        /// 主键Id
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDescription = "主键Id")]
        public long Id { get; set; } = 0;
        ///<summary>
        /// 创建时间
        ///</summary>
        [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        ///<summary>
        /// 描述
        ///</summary>
        [SugarColumn(ColumnName = "game_desc", ColumnDescription = "描述")]
        public string GameDesc { get; set; } = string.Empty;
        ///<summary>
        /// 名称
        ///</summary>
        [SugarColumn(ColumnName = "game_name", ColumnDescription = "名称")]
        public string GameName { get; set; } = string.Empty;
        ///<summary>
        /// 封面图片
        ///</summary>
        [SugarColumn(ColumnName = "img_url", ColumnDescription = "封面图片")]
        public string ImgUrl { get; set; } = string.Empty;

        /// <summary>
        /// 样式
        /// </summary>
        [SugarColumn(ColumnName = "display_class", ColumnDescription = "样式")]
        public string DisplayClass { get; set; } = string.Empty;
        ///<summary>
        /// 跳转地址
        ///</summary>
        [SugarColumn(ColumnName = "link_url", ColumnDescription = "跳转地址")]
        public string LinkUrl { get; set; } = string.Empty;
        ///<summary>
        /// 排序
        ///</summary>
        [SugarColumn(ColumnName = "sort_no", ColumnDescription = "排序")]
        public int SortNo { get; set; } = 0;

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "status", ColumnDescription = "状态")]
        public EnumStatus Status { get; set; } = EnumStatus.Enable;

    }
}
